<template>
  <div id="dd">
    子级复选框:
    吃饭:<input type="checkbox" :checked="isDrink" @input="onchenbox">
  </div>
</template>

<script>
export default {
  name: 'InputCheckbox',
  props: ['isDrink', 'updataChebox'],
  methods: {
    onchenbox(e) {
      this.updataChebox(e.target.checked)
    }
  },
}
</script>




<style scoped>
#dd {
  background-color: #cef;
  padding: 10px;
  margin-top: 15px;
  font-size: larger;
}
</style>